import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './common/flexible' // rem
import './components/global' // 全局组件
import api from './common/api'// api
import 'swiper/dist/css/swiper.css'// swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'// swiper
Vue.prototype.$api = api
Vue.use(VueAwesomeSwiper)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
  mounted () {
    document.dispatchEvent(new Event('render-event'))
  }
}).$mount('#app')
